home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / viewers / polyview / polyvw31.lha / Polyview3.1 / new / pvtokens.h < prev    next >
C/C++ Source or Header  |  1993-08-24  |  10KB  |  264 lines

  1. /*****************************************************************************
  2.  * NCSA Polyview 3.1                                                         *
  3.  *                                                                           *
  4.  * Version 3.1 changes and additions by Gilles Bourhis.                      *
  5.  * Version 3 changes and additions by Marc Andreessen.                       *
  6.  * Version 2 by Brian Calvert.                                               *
  7.  *                                                                           *
  8.  * Software Development Group                                                *
  9.  * National Center for Supercomputing Applications                           *
  10.  * University of Illinois at Urbana-Champaign                                *
  11.  *                                                                           *
  12.  * This is BETA release software.  As such it may contain software bugs and  *
  13.  * exhibit inconsistencies.                                                  *
  14.  *                                                                           *
  15.  * Please send bug reports to polyview@ncsa.uiuc.edu.                        *
  16.  *                                                                           *
  17.  * Copyright (c) 1992 The Board of Trustees of the University of Illinois.   *
  18.  *                                                                           *
  19.  * Permission to use, copy, and modify this software and its                 *
  20.  * documentation for educational, research, and non-profit purposes is       *
  21.  * hereby granted, provided that the above copyright notice, the original    *
  22.  * authors names, and this permission notice appear in all such copies.      *
  23.  * Any distribution of this software requires the explicit and written       *
  24.  * authorization of the authors.                                             *
  25.  *                                                                           *
  26.  * The University of Illinois makes no representations about the             *
  27.  * suitability of this software for any purpose.  It is provided "as is"     *
  28.  * without warranty of any kind.                                             *
  29.  *****************************************************************************/
  30.  
  31. /* $Id: pvtokens.h,v 1.3 93/08/24 10:19:34 gbourhis Exp $ */
  32.  
  33. #ifdef RCSLOG
  34. $Log:    pvtokens.h,v $
  35.  * Revision 1.3  93/08/24  10:19:34  gbourhis
  36.  * add PV_PROPS_CREDITS token.
  37.  * 
  38.  * Revision 1.2  93/08/13  13:45:32  gbourhis
  39.  * add PV_PVIEW_SAVE_RGB token.
  40.  * 
  41.  * Revision 1.1  92/09/18  10:55:26  marca
  42.  * Initial revision
  43.  * 
  44. #endif
  45.  
  46. #ifndef __POLYVIEW_TOKENS_H__
  47. #define __POLYVIEW_TOKENS_H__
  48.  
  49. #define PV_NULL                         0xffff  /* max value */
  50.  
  51. /* General (including main window). */
  52. #define PV_EXIT_PROGRAM            0x0000
  53. #define PV_CLOSE_WINDOW            0x0001
  54.  
  55. #define PV_LOAD_SCRIPT                  0x0005
  56.  
  57. #define PV_DTM_IN                       0x0006
  58. #define PV_DTM_OUT                      0x0007
  59.  
  60. #define PV_OPEN_POLYVIEW        0x0010
  61. #define PV_OPEN_PALETTE            0x0011
  62. #define PV_OPEN_INFO            0x0012
  63. #define PV_OPEN_TIME            0x0013
  64.  
  65. #define PV_AUTOPLACE            0x0020
  66.  
  67. #define PV_TOGGLE_SOUND                 0x0027
  68. #define PV_TOGGLE_DITHER                0x0028
  69. #define PV_TOGGLE_ZBUFFER               0x0029
  70.  
  71. #define PV_HELP_ABOUT                   0x0030
  72.  
  73. #define PV_MAIN_HELP_ONWINDOW           0x0031
  74.  
  75. #define PV_HELP_ONCOMMANDS              0x0033
  76.  
  77. /* Polyview window specific. */
  78. #define PV_PVIEW_BLAST                  0x0100
  79. #define PV_PVIEW_ACTIVE                 0x0101
  80. #define PV_PVIEW_PRIVATE                0x0102
  81.  
  82. #define PV_PVIEW_RESET            0x0107
  83. #define PV_PVIEW_CLOSE_WINDOW           0x0108
  84.  
  85. #define PV_PVIEW_OPEN_RENDER        0x0110
  86. #define PV_PVIEW_OPEN_PROPS        0x0111
  87. #define PV_PVIEW_POPUP_SPHERE           0x0112
  88. #define PV_PVIEW_POPUP_OUTLINE          0x0113
  89. #define PV_PVIEW_POPUP_LINEWIDTH        0x0114
  90.  
  91. #define PV_PVIEW_TIME_FORWARD        0x0120
  92. #define PV_PVIEW_TIME_FORWARDSTEP    0x0121
  93. #define PV_PVIEW_TIME_STOP        0x0122
  94. #define PV_PVIEW_TIME_REVERSESTEP    0x0123
  95. #define PV_PVIEW_TIME_REVERSE        0x0124
  96. #define PV_PVIEW_TIME_RESET        0x0125
  97.  
  98. #define PV_PVIEW_SELECT_VERTICES    0x0130
  99. #define PV_PVIEW_SELECT_FACES        0x0131
  100. #define PV_PVIEW_SELECT_OBJECTS        0x0132
  101. #define PV_PVIEW_SELECT_ALL        0x0133
  102.  
  103. #define PV_PVIEW_HELP_ONWINDOW          0x0140
  104.  
  105. #define PV_PVIEW_LOAD_VSET              0x0150
  106. #define PV_PVIEW_DTM_SEND               0x0151
  107. #define PV_PVIEW_DATA_LOAD              0x0152
  108. #define PV_PVIEW_DATA_NORMALIZE         0x0153
  109. #define PV_PVIEW_SAVE_HDF               0x0154
  110. #define PV_PVIEW_SAVE_RAY               0x0155
  111. #define PV_PVIEW_SAVE_PS                0x0156
  112. #ifdef RENDERMAN
  113. #define PV_PVIEW_SAVE_RENDERMAN         0x0157
  114. #endif
  115. #define PV_PVIEW_SAVE_RGB               0x0158
  116.  
  117. #define PV_PVIEW_DRAW_NOTHING        0x0200
  118. #define PV_PVIEW_DRAW_VERTICES        0x0201
  119. #define PV_PVIEW_DRAW_EDGES        0x0202
  120. #define PV_PVIEW_DRAW_TRANSPARENT    0x0203
  121. #define PV_PVIEW_DRAW_FACES        0x0204
  122. #define PV_PVIEW_DRAW_OUTFACES_W        0x0205
  123. #define PV_PVIEW_DRAW_OUTFACES_B        0x0206
  124. #define PV_PVIEW_DRAW_OUTFACES          0x0207
  125. #define PV_PVIEW_DRAW_HIDDEN            0x0208
  126.  
  127. #define PV_PVIEW_DRAG_NOTHING        0x0210
  128. #define PV_PVIEW_DRAG_BOX        0x0211
  129. #define PV_PVIEW_DRAG_VERTICES        0x0212
  130. #define PV_PVIEW_DRAG_EDGES        0x0213
  131. #define PV_PVIEW_DRAG_TRANSPARENT    0x0214
  132. #define PV_PVIEW_DRAG_FACES        0x0215
  133. #define PV_PVIEW_DRAG_OUTFACES            0x0216
  134. #define PV_PVIEW_DRAG_SAMEASDRAW    0x0217
  135. #define PV_PVIEW_DRAG_HIDDEN            0x0218
  136.  
  137. #define PV_PVIEW_PROJ_PERSPECTIVE    0x0220
  138. #define PV_PVIEW_PROJ_ORTHOGRAPHIC    0x0221
  139.  
  140. #define PV_PVIEW_SHADE_GOURAUD        0x0230
  141. #define PV_PVIEW_SHADE_FLAT        0x0231
  142.  
  143. #define PV_PVIEW_BUTTON_OK        0x0240
  144. #define PV_PVIEW_BUTTON_RESET        0x0241
  145. #define PV_PVIEW_BUTTON_HELP        0x0242
  146.  
  147. #define PV_PVIEW_LIGHT_ONE              0x0250
  148. #define PV_PVIEW_LIGHT_TWO              0x0251
  149. #define PV_PVIEW_LIGHT_THREE            0x0252
  150. #define PV_PVIEW_LIGHT_X                0x0253
  151. #define PV_PVIEW_LIGHT_Y                0x0254
  152. #define PV_PVIEW_LIGHT_Z                0x0255
  153. #define PV_PVIEW_LIGHT_OFF              0x0256
  154. #define PV_PVIEW_LIGHT_TWOSIDE          0x0257
  155.  
  156. /* Props (now render) window specifics. */
  157. #define PV_PROPS_AXES_SMALL        0x0300
  158. #define PV_PROPS_AXES_LARGE        0x0301
  159. #define PV_PROPS_AXES_OFF        0x0302
  160.  
  161. #define PV_PROPS_BOX_EDGESFACES        0x0310
  162. #define PV_PROPS_BOX_EDGES        0x0311
  163. #define PV_PROPS_BOX_FACES        0x0312
  164. #define PV_PROPS_BOX_OFF        0x0313
  165.  
  166. #define PV_PROPS_FOCUS            0x0320
  167.  
  168. #define PV_PROPS_GRID_XY        0x0330
  169. #define PV_PROPS_GRID_YZ        0x0331
  170. #define PV_PROPS_GRID_XZ        0x0332
  171. #define PV_PROPS_GRID_ALL        0x0333
  172. #define PV_PROPS_GRID_OFF        0x0334
  173.  
  174. #define PV_PROPS_SHADOW_XY        0x0340
  175. #define PV_PROPS_SHADOW_YZ        0x0341
  176. #define PV_PROPS_SHADOW_XZ        0x0342
  177. #define PV_PROPS_SHADOW_ALL        0x0343
  178. #define PV_PROPS_SHADOW_OFF        0x0344
  179.  
  180. #define PV_PROPS_LEGEND                 0x0350
  181. #define PV_PROPS_CREDITS                0x0351
  182.  
  183. #define PV_PROPS_ALL_OFF                0x0360
  184.  
  185. /* Palette window specific. */
  186. #define PV_PALETTE_LOAD_HDF             0x0400
  187. #define PV_PALETTE_LOAD_RAW             0x0401
  188. #define PV_PALETTE_SAVE_HDF             0x0402
  189. #define PV_PALETTE_SAVE_RAW             0x0403
  190. #define PV_PALETTE_RESET                0x0404
  191.  
  192. #define PV_PALETTE_PRESETS_RAINBOW      0x0410
  193. #define PV_PALETTE_PRESETS_WTOB         0x0411
  194. #define PV_PALETTE_PRESETS_BTOW         0x0412
  195. #define PV_PALETTE_PRESETS_RGB          0x0413
  196. #define PV_PALETTE_PRESETS_YELLOW       0x0414
  197. #define PV_PALETTE_PRESETS_REDBLUE      0x0415
  198. #define PV_PALETTE_PRESETS_WHITEBLUE    0x0416
  199. #define PV_PALETTE_PRESETS_YELLOWRED    0x0417
  200. /* get the rest from venus. */
  201.  
  202. #define PV_PALETTE_BACKG_BLACK          0x0420
  203. #define PV_PALETTE_BACKG_WHITE          0x0421
  204. #define PV_PALETTE_BACKG_GREY           0x0422
  205. #define PV_PALETTE_BACKG_BLUE           0x0423
  206. #define PV_PALETTE_BACKG_RED            0x0424
  207.  
  208. #define PV_PALETTE_BACKG_RGBY           0x0430
  209. #define PV_PALETTE_BACKG_RGBLUE         0x0431
  210. #define PV_PALETTE_BACKG_RBBLACK        0x0432
  211.  
  212. #define PV_PALETTE_BACKG_BLUEHORIZ      0x0440
  213. #define PV_PALETTE_BACKG_REDHORIZ       0x0441
  214. #define PV_PALETTE_BACKG_GREENHORIZ     0x0442
  215. #define PV_PALETTE_BACKG_YELLOWHORIZ    0x0443
  216.  
  217. #define PV_PALETTE_BACKG_BLUESKY        0x0450
  218. #define PV_PALETTE_BACKG_REDSKY         0x0451
  219. #define PV_PALETTE_BACKG_GREENSKY       0x0452
  220. #define PV_PALETTE_BACKG_YELLOWSKY      0x0453
  221.  
  222. #define PV_PALETTE_BACKG_BLUESTREAK     0x0460
  223. #define PV_PALETTE_BACKG_REDSTREAK      0x0461
  224. #define PV_PALETTE_BACKG_GREENSTREAK    0x0462
  225. #define PV_PALETTE_BACKG_YELLOWSTREAK   0x0463
  226.  
  227. #define PV_PALETTE_BACKG_BLUESMEAR      0x0470
  228. #define PV_PALETTE_BACKG_REDSMEAR       0x0471
  229. #define PV_PALETTE_BACKG_GREENSMEAR     0x0472
  230. #define PV_PALETTE_BACKG_YELLOWSMEAR    0x0473
  231.  
  232.  
  233. #define PV_PALETTE_HELP_ONWINDOW        0x0490
  234.  
  235. #define PV_PALETTE_CLOSE_WINDOW         0x0499
  236.  
  237. /* Info window specific. */
  238. #define PV_INFO_BUTTON_OK               0x0500
  239. #define PV_INFO_BUTTON_HELP             0x0501
  240.  
  241. /* Time window specific. */
  242. #define PV_TIME_FRAME_SCALE             0x0600
  243.  
  244. #define PV_TIME_FRAME_FORWARD           0x0610
  245. #define PV_TIME_FRAME_FORWARDSTEP       0x0611
  246. #define PV_TIME_FRAME_STOP              0x0612
  247. #define PV_TIME_FRAME_REVERSESTEP       0x0613
  248. #define PV_TIME_FRAME_REVERSE           0x0614
  249. /* This can be hit from the polyview menubar, so make sure
  250.    to check for existence of time window before resetting Widgets. */
  251. #define PV_TIME_FRAME_RESET             0x0615
  252.  
  253. #define PV_TIME_FRAME_TEXT              0x0620
  254.  
  255. #define PV_TIME_DELAY_SCALE             0x0630
  256.  
  257. #define PV_TIME_SKIP_SCALE              0x0640
  258.  
  259. #define PV_TIME_BUTTON_OK               0x0650
  260. #define PV_TIME_BUTTON_RESET            0x0651
  261. #define PV_TIME_BUTTON_HELP             0x0652
  262.  
  263. #endif /* __POLYVIEW_TOKENS_H__ */
  264.